'use strict';

const auth = require('../controllers/auth');

module.exports = function (app, router, conf) {
    const { middlewares: { auth: authenticator } } = app

    router.post('/login', auth.login, { content: '登录', visible: true });
    router.put('/logout', authenticator, auth.logout, { content: '登出', visible: false });
};